<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<jsp:include page="../../common/assets_header.jsp"/>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<script>
jQuery(document).ready(function() {    
	
	
	  
	
});

function back(){
	$("#user_form").attr("action","<%=request.getContextPath()%>/module/info/list");
	$("#user_form").submit();
}



</script>

</head>
<body >
<!-- content -->	
		<div class="page-content">
			<div class="page-header">
				<h1>
					<c:if test="${module.moduleInfoId==null }">新增模块</c:if>
						<c:if test="${module.moduleInfoId!=null }">编辑模块</c:if>
								<small>
									<i class="icon-double-angle-right"></i>
									
								</small>
							</h1>
							
					
			</div>
				<!-- END PAGE HEADER-->
				<div class="row">
					<c:if test="${success}">
						<div class="alert alert-success">
									<button class="close" data-dismiss="alert"></button>
									<strong><spring:message code="success"></spring:message>!</strong> <spring:message code="save success"></spring:message>！
								</div>
					</c:if>
					
					<c:if test="${success==false}">
						<div class="alert alert-failure">
									<button class="close" data-dismiss="alert"></button>
									<strong><spring:message code="failure"></spring:message>!</strong> ${message}
								</div>
					</c:if>
					
					<%-- <h3 class="page-title">
						<c:if test="${module.moduleInfoId==null}"><spring:message code="btn.common.add.user"></spring:message></c:if>
							<c:if test="${module.moduleInfoId!=null}"><spring:message code="btn.common.edit.user"></spring:message></c:if>
					</h3> --%>
				<div class="col-xs-12">
					<form id="user_form" action="<c:if test="${module.moduleInfoId==null}">add</c:if><c:if test="${module.moduleInfoId!=null}">update</c:if>" method="post" class="form-horizontal">
						<input type="hidden" name="sorting_column_order" id="sorting_column_order" value="${sorting_column_order }"/>
						<input type="hidden" name="sorting_asc_desc"  id="sorting_asc_desc" value="${sorting_asc_desc}"/>
						<input type="hidden" name="searchValue"  value="${searchValue}"/>
						<input type="hidden" name="id" value="${module.moduleInfoId}"></input>
						<input type="hidden" name="token" value="${token}"></input>
						<input type="hidden" name="iDisplayStart" value="${iDisplayStart}">
						<div class="form-group">
								<label class="col-sm-3 control-label no-padding-right" for="form-field-1">模块编号：</label>

								<div class="controls">

									<input type="text" maxlength="30" name="moduleCode" value="${module.moduleCode }" class="m-wrap" />
									
									<span class="help-inline"></span>

								</div>

							</div>
							
						
						
							<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1">模块名称：</label>

								<div class="controls">

									<input type="text" maxlength="30" name="moduleName" value="${module.moduleName}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>

						
							<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1">模块描述：</label>

								<div class="controls">

									<input type="text" maxlength="30" name="moduleDesc" value="${module.moduleDesc}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>
						
						
						
						
							<%-- <div class="form-group">

							<label class="col-sm-3 control-label no-padding-right" for="form-field-1">模块状态：</label>

								<div class="controls">

									<input type="text" maxlength="80" name="moduleStatus" value="${module.moduleStatus}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div> --%>
						
						 <div class="form-group">

							<label class="col-sm-3 control-label no-padding-right" for="form-field-1">i18n_key：</label>

								<div class="controls">

									<input type="text" maxlength="80" name="i18n_key" value="${module.i18n_key}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>
						
						
						<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1">模块连接：</label>

								<div class="controls">

									<input type="text" maxlength="20" name="moduleUrl" value="${module.moduleUrl}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>
						
						
						<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1">注册企业默认模块：</label>

								<div class="controls">
							<c:if test="${module.isDefault==1}">
								<input type="radio"  checked="checked" name="isDefault" value="1"  class="m-wrap" /> 是 
								<input type="radio" name="isDefault" value="0"  class="m-wrap" /> 否
							</c:if>
							<c:if test="${module.isDefault!=1}">
								<input type="radio"   name="isDefault" value="1"  class="m-wrap" /> 是 
								<input type="radio" name="isDefault" checked="checked" value="0"  class="m-wrap" /> 否
							</c:if>
							
									<span class="help-inline"></span>

								</div>

							</div>
						
							

							
							
						
					<div class="form-actions center">

										<button type="submit" class="btn btn-xs btn-primary"><spring:message
													code="btn.common.save"></spring:message></button>

										<button type="button" onclick="back();" class="btn btn-xs btn-primary"><spring:message
													code="btn.common.back"></spring:message></button>

						 </div>
						
						
					
					</form>
				
				
				</div>

				

				
			</div>


		</div>
		<!-- content end -->


		
		


</body>